<?php

use think\facade\Route;

//不需要登陆的页面
Route::group(function (){
    Route::rule('AccountLogin','Account/login');
});


//总后台其他需要登陆校验的
Route::group(function (){
    Route::rule('AccountInfo','Account/detail'); //获取账号信息
    Route::rule('AccountEditPwd','Account/edit'); //修改密码
    
    Route::rule('SystemVersion','Account/version'); //获取版本信息
    Route::rule('SystemUpgrade','Account/upgrade'); //获取升级代码

    Route::rule('FirmList','Firm/list'); //初始信息
    Route::rule('CreateFirm','Firm/create'); //初始信息
    
    Route::rule('loginAdmin','Firm/login'); //初始信息
})->middleware([\app\account\middleware\Base::class,\app\account\middleware\Check::class]);

Route::miss(function() {
    return '404！您访问的地址不存在！';
});